﻿using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.RootInterface;
using System.Collections.Generic;
using System;

namespace EkStudio.com.bean.xml.BillReflect
{
    public class BillRefectDataNodeOutList: BillObjectInterface
    {
        private List<BillRefectDataNodeOutItem> item = null;

        [XmlElement]
        public List<BillRefectDataNodeOutItem> Item
        {
            get { return item; }
            set { item = value; }
        }
        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
                
            }
        }

        public object Clone()
        {
            BillRefectDataNodeOutList clone = new BillRefectDataNodeOutList();
            clone.Item = new List<BillRefectDataNodeOutItem>();
            if (item != null && item.Count > 0)
            {
                foreach(BillRefectDataNodeOutItem it in Item)
                {
                    BillRefectDataNodeOutItem obj = it.Clone() as BillRefectDataNodeOutItem;
                    if (obj != null)
                    {
                        clone.Item.Add(obj);
                    }
                }
            }
            return clone;
        }
    }
}
